package grape.composite.rest.railway.mapper;

import grape.composite.rest.railway.form.RailwayStationListForm;
import grape.composite.service.railway.po.RailwayStation;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.railway.form.RailwayStationCreateForm;
import grape.composite.rest.railway.form.RailwayStationUpdateForm;
import grape.composite.rest.railway.form.RailwayStationListPageForm;
import grape.composite.rest.railway.vo.RailwayStationVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 铁路站点表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface RailwayStationWebMapper extends WebMapper<RailwayStationVo, RailwayStation> {

    RailwayStation formToPo(RailwayStationCreateForm f);
    RailwayStation formToPo(RailwayStationUpdateForm f);
    RailwayStation formToPo(RailwayStationListPageForm f);
    RailwayStation formToPo(RailwayStationListForm f);
}
